<script type="text/javascript">
    function editRecord(){
        loadUrl("#<?= $div ?>","<?= base_url(); ?>index.php?/edit_info/letterEditInfo/<?= $tid ?>/");
    }
</script>
<div class="post">
    <?php if (isset($errors)) {
    ?>
        <div class="error">
            Sorry, error occurred. <?= $errors; ?>
        </div>
    <?php } else {
    ?>
        <div class="entry">
            <table style="border:5px;border-style:solid;">
            <tr class="lighter">
                <th>
                   Names
                </th>
                <td>
                    <?= $names; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                    Member no
                </th>
                <td>
                    <?= $member_no; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                   Grade
                </th>
                <td>
                    <?= $grade; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                   Branch
                </th>
                <td>
                    <?= $branch; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                   Town
                </th>
                <td>
                    <?= $town; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                   Phone
                </th>
                <td>
                    <?= $phone; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                   Email
                </th>
                <td>
                    <?= $email; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                   Permanent address
                </th>
                <td>
                    <?= $perm_address; ?>
                </td>
            </tr>
            <tr class="lighter">
                <th>
                   Town
                </th>
                <td>
                    <?= $town; ?>
                </td>
            </tr>
            <tr class="darker">
                <th>
                   Company
                </th>
                <td>
                    <?= $company; ?>
                </td>
            </tr>
                <tr>
                    <td colspan="2"  style="text-align: right">
                        <input type="button" onclick="hide('#<?= $div; ?>')" value="Close" />                  
                    </td>
                </tr>
                     
 
        </table>
    </div>
    <?php } ?>
</div>